package com.chat.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chat.admin.domain.DTO.LoginAdminDTO;
import com.chat.admin.domain.DTO.RefreshTokenDTO;
import com.chat.admin.domain.VO.LoginAdminVO;
import com.chat.admin.domain.VO.RefreshTokenVO;
import com.chat.common.entity.Admin;
import com.chat.common.vo.R;

public interface LoginService extends IService<Admin> {
    /**
     * 登录
     * @param loginAdminDTO
     * @return
     */
    R<LoginAdminVO> login(LoginAdminDTO loginAdminDTO);

    /**
     * 刷新token
     * @param refreshToken
     * @return
     */
    R<RefreshTokenVO> refreshToken(RefreshTokenDTO refreshToken);
}
